package com.zzh.weixinsell.exception;

import com.zzh.weixinsell.enums.ResultEnum;

/**
 * Create by ${ZZH} on 2018/4/22
 */
public class SellException extends RuntimeException {

    private Integer code;

    public SellException(ResultEnum resultEnum) {
        super(resultEnum.getMassage());
        this.code = resultEnum.getCode();
    }

    public SellException(Integer code,String message) {
        super(message);
        this.code = code;

    }
}
